// https://docs.expo.dev/guides/using-eslint/
const { defineConfig } = require("eslint/config")
const expoConfig = require("eslint-config-expo/flat")
const prettierPlugin = require("eslint-plugin-prettier")
const eslintConfigPrettier = require("eslint-config-prettier/flat")

module.exports = defineConfig([
  expoConfig,
  {
    extends: [eslintConfigPrettier],
    plugins: {
      prettier: prettierPlugin
    },
    rules: {
      "prettier/prettier": "error"
    },
    ignores: ["dist/*"]
  }
])
